<?php

namespace App\Http\Repository;

use App\Box;

class BoxRepository
{
    private $box;

    public function __construct(Box $box)
    {
        $this->box = $box;
    }

    //得到前台盒子的信息
    public function getBox()
    {
        $boxes = $this->box->where('status', 1)->lists('describe', 'path')->toArray();

        return $boxes;
    }
}